home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48_2 / grob.pri < prev    next >
Text File  |  1995-03-23  |  2KB  |  81 lines

  1. Article 1777 of comp.sys.handhelds:
  2. Path: en.ecn.purdue.edu!noose.ecn.purdue.edu!mentor.cc.purdue.edu!purdue!bu.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!cs.utexas.edu!asuvax!ncar!boulder!ccncsu!longs.LANCE.ColoState.Edu!robert
  3. From: robert@longs.LANCE.ColoState.Edu (Robert Thompson)
  4. Newsgroups: comp.sys.handhelds
  5. Subject: GROB Vertical Printer
  6. Message-ID: <10220@ccncsu.ColoState.EDU>
  7. Date: 12 Oct 90 15:48:59 GMT
  8. Sender: news@ccncsu.ColoState.EDU
  9. Reply-To: robert@longs.LANCE.ColoState.Edu (Robert Thompson)
  10. Organization: Colorado State University, Fort Collins, CO  80523
  11. Lines: 66
  12.  
  13.  
  14. %%HP: T(3)A(R)F(.);
  15. @ ROTATE: This program was written By Robert Craeger and Robert Thompson
  16. @
  17. @ In the hopes of being able to print GROBS that were too long to fit into 
  18. @ the 166 dot requirement of the printer, the program below was written.  This
  19. @ program will rotate a GROB and print it vertically on the IR printer that
  20. @ so many uf us wish we had. :-)
  21. @
  22. @ Unfortunately, this program is slow (Not *really* slow but slow
  23. @ nevertheless)  A future version is planed that will be entirely in
  24. @ m-code.
  25. @
  26. @ Please send any remarks to:
  27. @        
  28. @         robert@longs.LANCE.ColoState.Edu
  29. @                or
  30. @         rc943406@longs.LANCE.ColoState.Edu
  31. @
  32. @ REMARKS:
  33. @        Remember to set the appropriate modes on your 48 when using
  34. @    the old printer.  OLDPRT SHOULD NOT BE ENABLED! for the old printer
  35. @
  36. @ PSEUDOBENCHMARK:
  37. @               This program takes approximatly 1.5 Minutes on a 50x63 GROB
  38. @
  39. @ BUGS:
  40. @        This program needs an inane amount of memory to run!
  41.  
  42. DIR
  43.   ROTATE
  44.     \<< HEX STRIP
  45. OVER 2 / FLOOR 83 -
  46. NEG 27 CHR 4 PICK 3
  47. PICK + CHR + SWAP 1
  48. SWAP
  49.       START 0 CHR +
  50.       NEXT \-> x y
  51. str pad
  52.       \<< 8 STWS 0 x
  53. 8 / FLOOR 1 -
  54.         FOR h h 2 *
  55. 1 + \-> cnst
  56.           \<< pad y 1
  57. - 0
  58.             FOR i
  59. "#" str i x * 4 /
  60. cnst + DUP 1 + SUB
  61. + STR\-> RR RR RR RR
  62. B\->R CHR + -1
  63.             STEP PR1
  64.           \>> DROP
  65.         NEXT
  66.       \>>
  67.     \>>
  68.   STRIP
  69.     \<< DUP SIZE B\->R
  70. SWAP B\->R 8 / CEIL 8
  71. * SWAP ROT \->STR 1 3
  72.       START DUP " "
  73. POS 1 + OVER SIZE
  74. SUB
  75.       NEXT
  76.     \>>
  77. END
  78.  
  79.  
  80.